<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use app\common\model\xiservice\Order;
use think\Db;
class Index extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function index()
    {
        $this->redirect('/adminbs.php');
//        return $this->view->fetch();
    }

    public function test()
    {
        $orderInfo =  Order::where('id', 6)->find();
        $msgModel = new \app\common\model\xiservice\Message;
        $req = $msgModel->sendOrderMessage($orderInfo, 6);//3
    }
}
